package com.lry.basic.spring.ioc.test;

import com.lry.basic.spring.ioc.AnnotationApplicationContext;
import org.junit.jupiter.api.Test;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/11/16
 */
public class testAnno {
    @Test
    public void testAnno() throws Exception {
        AnnotationApplicationContext app = new AnnotationApplicationContext(AppConfig.class);
        ABean aBean = (ABean) app.getBean("aBean");
        CBean cBean = (CBean) app.getBean("cBean");
        aBean.doSth();
        cBean.doSth();

    }
}
